home *** CD-ROM | disk | FTP | other *** search
- Path: atglab.bls.com!Alun.Champion
- From: Alun.Champion@bridge.bst.bls.com (Alun Champion)
- Newsgroups: comp.lang.c++
- Subject: Re: What?? MS forgot about the ANSI standard
- Date: 18 Jan 1996 18:28:27 GMT
- Organization: Computer People Inc.
- Message-ID: <ALUN.CHAMPION.96Jan18132827@g7240065.bridge.bst.bls.com>
- References: <30FE840F.4235@email.usps.gov>
- NNTP-Posting-Host: bstfirewall.bst.bls.com
- In-reply-to: Craig Johnson's message of Thu, 18 Jan 1996 12:31:59 -0500
-
- In article <30FE840F.4235@email.usps.gov> Craig Johnson <cjohnso7@email.usps.gov> writes:
-
- : I am using the code similar to below in VC 4.0:
-
- : char block[80];
- : int *p = new (block) int;
-
- : I get the following compiler error:
-
- : error C2661: 'new' : no overloaded function takes 2 parameters
-
- : This is perfectly valid C++ syntax. Am I crazy or did Microsoft
- : forget about the ANSI standard. Any of you using the STL
- : probably came across this error also. If so, how did you
- : resolve it?
-
- This is valid C++ syntax only if you include <new.h>.
-
- Regards
-
- -A.
- --
- | A.Champion |
-